package com.swanclouds.redfish;

import com.swanclouds.api.client.IOSClientBuilder;
import com.swanclouds.core.transport.internal.HttpLoggingFilter;
import com.swanclouds.redfish.client.OSClientBuilder;

public class OSFactory<T extends OSFactory<T>> {

    public OSFactory(){}

    /**
     * Globally enables or disables verbose HTTP Request and Response logging useful for debugging
     *
     * @param enabled true to enable, false to enable
     */
    public static void enableHttpLoggingFilter(boolean enabled) {
        HttpLoggingFilter.toggleLogging(enabled);
    }

    /**
     * Creates builder for OpenStack V3 based authentication
     *
     * @return V3 Authentication builder
     */
    public static IOSClientBuilder.V1 builderV1() {
        return new OSClientBuilder.ClientV1();
    }
}
